package com.songmao.pricecloudapitest.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Remy
 * @description :
 * @date 2020-05-06 14:13
 */
public class LoggerCore {

    private Logger logger;


    public LoggerCore(Class<?> clazz) {
        logger = LoggerFactory.getLogger(clazz);
    }

    public LoggerCore(String clazz) {
        logger = LoggerFactory.getLogger(clazz);
    }


    public void info(String message) {
        logger.info(message);

    }

    public void info(String message, Object obj) {
        logger.info(message, obj);
    }

    public void error(String message, Throwable e) {
        logger.error(message, e);
    }

    public void error(String message, Object obj) {
        logger.error(message, obj);
    }


}
